<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layout::header">
</head>
<body>
<nav th:replace="layout::navbar"></nav>
<div class="newContainer">
    <div class="newCenter">

            <h4>新增留言</h4><br/>
            <form th:action="@{/forums/save}" method="POST" th:object="${forum}" >
                <table>
                    <tr>
                        <td>时间:</td>
                        <td colspan="2"><input type="text" th:field="${forum.time}"/></td>
                    </tr>

                    <tr>
                        <td colspan="3"><textarea type="text" th:field="${forum.content}" rows="7" cols="85"></textarea></td>
                    </tr>
                    <tr>
                        <td> </td><td colspan="2"><button type="submit">提交</button> </td>
                    </tr>

                </table>
            </form>
    </div>
</div>

</body>
</html>